package com.qfedu.lc.server.controller;




import com.qfedu.lc.common.vo.R;
import com.qfedu.lc.server.service.SmsLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 3.短信发送表 前端控制器
 * </p>
 *
 * @author wgz
 * @since 2023-10-30
 */
@RestController
@RequestMapping("/server/sms")
public class SmsLogController {

    /**
     * 服务对象
     */
    @Resource
    private SmsLogService service;

    @GetMapping("/sendrcode")
    public R sendRcode(@RequestParam(value = "phone") String phone){
        return service.sendCode(phone);
    }



}

